<?php
/**
 * Created by PhpStorm.
 * User: Coderjianfeng
 * Date: 15/8/17
 * Time: 下午3:45
 */
class Domain_User{

    public function getUser($userphone, $password){
        $rs = array();
        if($userphone=='' || $password==''){
            return $rs;
        }
        $model = new Model_User();
        $rs = $model->getByUserPhone($userphone, $password);
        return $rs;
    }

    public function register($userphone, $password){
        $model = new Model_User();
        $rs = $model->doRegister($userphone,$password);
        return $rs;
    }

    public function  resetPwd($id, $password){
        $model = new Model_User();
        $rs = $model->updatePwd($id, $password);
        return $rs;
    }
}